#ifndef QSIIMPLOT_H
#define QSIIMPLOT_H

#include <QWidget>
//#include <qwt_plot.h>
#include "ui_qsiimplot.h"
#include <QMdiSubWindow>
#include "Siim_define.h"

class QRealTimePlot;
class CSiimData;
class QSiimPlot : public QMdiSubWindow
{
	Q_OBJECT

public:
	QSiimPlot(int nIndex,SiimDataType dataType,PlotType nType,CSiimData *pData,QWidget *parent = 0);
	~QSiimPlot();
protected:
	virtual void closeEvent(QCloseEvent *event);
private:
	QWidget *pInterWidget;
	
	
public:
	QRealTimePlot *pRTplot;
	void SetTitle(QString strTitle);
	void SetBackground(QColor bgColor);
	void setSample(QPolygonF &points);
};

#endif // QSIIMPLOT_H
